uni.getStorageSync = function(key){
	var data = localStorage.getItem(key) || {}
	try{
		data = JSON.parse(data)
	}catch(e){
		data = data
	}
	if(data && data.type && data.type == 'object'){
		data = data.data
	}else{
		data = ''
	}
	return data
}
function getQueryString (name) {
	var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); 
	var r = window.location.search.substr(1).match(reg); 
	if (r != null) return unescape(r[2]); return null; 
} 